package com.lb.thread;

import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @ClassName MainDemo
 * @Author LB
 * @Date 2021/12/21 16:52
 **/
public class MainDemo {
    public static void main(String[] args) {

//        new ThreadDemo1().start();
//
//        new Thread(new RunnableDemo1()).start();
//
//        for (int i = 0; i < 10; i++) {
//            System.out.println(Thread.currentThread()+":"+i);
//        }

//        RunnableDemo runnableDemo = new RunnableDemo();
//        new Thread(runnableDemo,"窗口一").start();
//        new Thread(runnableDemo,"窗口二").start();
//        new Thread(runnableDemo,"窗口三").start();

        //线程池

    }
}